package com.qywx.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qywx.entity.SysUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName SysUserDao
 * @Description: TODO
 * @Author wmj
 * @Date 2020/3/11
 * @Version V1.0
 **/
@Mapper
@Component
public interface SysUserDao extends BaseMapper<SysUserEntity> {

    SysUserEntity login(String username, String password);


    void enableUser(Integer userid);

    void forbiddenSysUser(String userid);

    void updateSysUser(String userid, String password);

    List<SysUserEntity> find(int start, int size);

    int getTotal();

    SysUserEntity selectByName(String username);
}
